package cn.jr.dao;

import cn.jr.pojo.Order;
import cn.jr.pojo.OrderProject;
import cn.jr.pojo.Wares;

import java.util.ArrayList;

public interface IOrderProjectDao {

        ArrayList<OrderProject> selectOrderProject(String orderId);//根据订单编号查询订单详情

        OrderProject selectOrderProjectInOrderByWaresNumber(String orderId, String waresNumber);//根据订单编号和商品编号查询商品详情
        int deleteOrderProjectByOrderProjectId(OrderProject orderProject);//根据订单详情编号删除订单详情

        OrderProject selectOrderProjectEnd();//查询是否还有没有完结的订单
        int insertOrderProject(Wares  ware,Double waresCount);// 插入订单商品详情表
        int insertOrderProjectInOrder(Wares  ware,Double waresCount);// 插入订单商品详情表
        int updateOrderProjectInTuiHuo(Wares ware, Double waresCount,String orderId);//更新订单商品详情表
        int updateOrderProject(Wares ware, Double waresCount,Double waresCount1,String orderProjectId);//更新订单商品详情表
        int deleteOrderProject(String waresNumber);//删除订单商品详情表
        ArrayList<OrderProject> selectOrderProjectByWaresNumber(String waresNumber);//根据商品编号查询订单详情
}
